package pack4;
/**
 * @author wenze-zero
 */
public class FactoryTest {
    public static void main(String[] args) {
        AbstractHumanFactory bagualu = new HumanFactory();
        Human blackMan = bagualu.createHuman(BlackHuman.class);
        Human yellowMan = bagualu.createHuman(YellowHuman.class);
        Human whiteMan = bagualu.createHuman(WhiteHuman.class);
        blackMan.getColor();
        yellowMan.getColor();
        whiteMan.getColor();
    }
}
